package com.eagle.videoboot.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.eagle.videoboot.domain.entity.Users;
import com.eagle.videoboot.domain.entity.UsersFans;
import com.eagle.videoboot.service.IUsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class HelloWorldController {

	@Autowired
	private IUsersService usersServiceImpl;

	@RequestMapping("/hello")
	public String Hello() {
		return "Hello Spring Boot~";
	}



	@RequestMapping("/userlist")
	public List<Users> userlist(){
		QueryWrapper<Users> wrapper = new QueryWrapper<>();
		List<Users> list = usersServiceImpl.list(wrapper);
		return list;
	}
	
}
